package com.example.transit.base;

import android.app.Application;
import android.app.NotificationManager;
import android.content.Context;

import com.example.transit.utils.UpdataAppUtil.DownLoadUtils;
import com.example.transit.utils.UpdataAppUtil.NotificationUtils;

public class MyApplication extends Application {
    private static MyApplication instance;
    public static String UUID = "";
    public static String AUTH = "";
    public static String IMEI = "";
    @Override
    public void onCreate() {
        super.onCreate();
        instance = this;
        init();
    }

    // 获取Application
    public static Context getMyApplication() {
        return instance;
    }

    @Override
    protected void attachBaseContext(Context base) {
        super.attachBaseContext(base);

    }

    private void init() {
        //自定义下载工具
        DownLoadUtils.getInstance().init(this);
        //自定义通知栏工具
        NotificationUtils.getInstance().init(this);

    }
}
